//
//  YWInsertTextView.h
//  YWPhotoEditMaster
//
//  Created by jun peng on 2023/8/14.
//

#import <UIKit/UIKit.h>
#import "YWTextStatus.h"


NS_ASSUME_NONNULL_BEGIN

@class YWInsertTextView;
@protocol YWInsertTextViewDelegate <NSObject>

- (void)insertTextView:(YWInsertTextView *)insertTextView changeTextWithStatus:(YWTextStatus *)status;

@end


@interface YWInsertTextView : UIView

//设置初始图片
- (void)setFirstImage:(UIImage *)image;

//设置表情图片
-(void)createImageViewWithTextStatus:(YWTextStatus *)textStatus;

-(void)reEditImageViewWithTextStatus:(YWTextStatus *)textStatus;

//获取当前图层
-(UIImage *)getCurrentLayer;

@property (nonatomic, weak) id<YWInsertTextViewDelegate> delegate;

-(void)resetIsEdit;

@end

NS_ASSUME_NONNULL_END
